package com.guet.careapp.service;

import com.guet.careapp.controller.rest.common.errorCode.Error;
import com.guet.careapp.controller.rest.common.errorCode.ErrorCode;
import com.guet.careapp.pojo.TUserRelation;
import com.guet.careapp.service.base.ServiceSupport;
import java.util.Map;

/**
 * Created by LXM on 2017/10/27.
 *
 * @author LXM
 * @version 1.0
 * @description
 * @datetime 17:18
 */
public interface IUserRelationService extends ServiceSupport<TUserRelation> {


  ErrorCode bindingRelation(Map map);

  String unbindingRelation(Map map);

  String search(Map map, int type);

  Error assignment(int gid, int ugid, int other_id);

  boolean checkRelation(int gid,int ugid);

}
